namespace GymTimer.Data
{
    public static class Constants
    {
        public const string DatabaseFilename = "AppSQLite.db3";
        public const string TimerDatabaseFilename = "gymtimer.db3";


        public const SQLite.SQLiteOpenFlags Flags =
          // open the database in read/write mode
          SQLite.SQLiteOpenFlags.ReadWrite |
          // create the database if it doesn't exist
          SQLite.SQLiteOpenFlags.Create |
          // enable multi-threaded database access
          SQLite.SQLiteOpenFlags.SharedCache;

        public static string DatabasePath =>
            $"Data Source={Path.Combine(FileSystem.AppDataDirectory, DatabaseFilename)}";

        public static string TimerDatabasePath
        {
            get
            {
                var path=Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
                return Path.Combine(path, TimerDatabaseFilename);

            }
        }
    }
}